﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WorldEditor.Tiles
{
    public partial class PalletForm : Form
    {
        public event EventHandler SelectedTileChanged;

        public PalletForm()
        {
            InitializeComponent();

            tilePallets1.SelectedTileChanged += new EventHandler(tilePallets1_SelectedTileChanged);
        }

        void tilePallets1_SelectedTileChanged(object sender, EventArgs e)
        {
            if (SelectedTileChanged.Method != null)
                SelectedTileChanged.Invoke(sender, e);

            this.Hide();
        }
    }
}
